package com.hanthink.system.service.impl.logistics;

import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hanthink.system.mapper.logistics.ProductionDeliveryPlanMapper;
import com.hanthink.system.domain.logistics.ProductionDeliveryPlan;
import com.hanthink.system.service.logistics.IProductionDeliveryPlanService;

/**
 * ProductionDeliveryPlanService业务层处理
 * 
 * @author lizhao
 * @date 2022-09-05
 */
@Service
public class ProductionDeliveryPlanServiceImpl implements IProductionDeliveryPlanService 
{
    @Autowired
    private ProductionDeliveryPlanMapper productionDeliveryPlanMapper;

    /**
     * 查询ProductionDeliveryPlan
     * 
     * @param id ProductionDeliveryPlanID
     * @return ProductionDeliveryPlan
     */
    @Override
    public ProductionDeliveryPlan selectProductionDeliveryPlanById(Long id)
    {
        return productionDeliveryPlanMapper.selectProductionDeliveryPlanById(id);
    }

    /**
     * 查询ProductionDeliveryPlan列表
     * 
     * @param productionDeliveryPlan ProductionDeliveryPlan
     * @return ProductionDeliveryPlan
     */
    @Override
    public List<ProductionDeliveryPlan> selectProductionDeliveryPlanList(ProductionDeliveryPlan productionDeliveryPlan)
    {
        return productionDeliveryPlanMapper.selectProductionDeliveryPlanList(productionDeliveryPlan);
    }

    /**
     * 新增ProductionDeliveryPlan
     * 
     * @param productionDeliveryPlan ProductionDeliveryPlan
     * @return 结果
     */
    @Override
    public int insertProductionDeliveryPlan(ProductionDeliveryPlan productionDeliveryPlan)
    {
        return productionDeliveryPlanMapper.insertProductionDeliveryPlan(productionDeliveryPlan);
    }

    /**
     * 修改ProductionDeliveryPlan
     * 
     * @param productionDeliveryPlan ProductionDeliveryPlan
     * @return 结果
     */
    @Override
    public int updateProductionDeliveryPlan(ProductionDeliveryPlan productionDeliveryPlan)
    {
        return productionDeliveryPlanMapper.updateProductionDeliveryPlan(productionDeliveryPlan);
    }

    /**
     * 批量删除ProductionDeliveryPlan
     * 
     * @param ids 需要删除的ProductionDeliveryPlanID
     * @return 结果
     */
    @Override
    public int deleteProductionDeliveryPlanByIds(Long[] ids)
    {
        return productionDeliveryPlanMapper.deleteProductionDeliveryPlanByIds(ids);
    }

    /**
     * 删除ProductionDeliveryPlan信息
     * 
     * @param id ProductionDeliveryPlanID
     * @return 结果
     */
    @Override
    public int deleteProductionDeliveryPlanById(Long id)
    {
        return productionDeliveryPlanMapper.deleteProductionDeliveryPlanById(id);
    }

    //集货完成接口
    @Override
    public List<ProductionDeliveryPlan> selectshippingconfirmation(ProductionDeliveryPlan productionDeliveryPlan)
    {
        return productionDeliveryPlanMapper.selectshippingconfirmation(productionDeliveryPlan);
    }

    @Override
    public List<ProductionDeliveryPlan> selectshippingconfirmationnook(ProductionDeliveryPlan productionDeliveryPlan)
    {
        return productionDeliveryPlanMapper.selectshippingconfirmationnook(productionDeliveryPlan);
    }


    @Override
    public int sureshippingconfirmation(ProductionDeliveryPlan productionDeliveryPlan)
    {
        return productionDeliveryPlanMapper.sureshippingconfirmation(productionDeliveryPlan);
    }

    //车辆到厂接口
    @Override
    public List<ProductionDeliveryPlan> selectdepartureconfirmation(ProductionDeliveryPlan productionDeliveryPlan)
    {
        return productionDeliveryPlanMapper.selectdepartureconfirmation(productionDeliveryPlan);
    }

    @Override
    public List<ProductionDeliveryPlan> selectdepartureconfirmationnook(ProductionDeliveryPlan productionDeliveryPlan)
    {
        return productionDeliveryPlanMapper.selectdepartureconfirmationnook(productionDeliveryPlan);
    }

    @Override
    public int suredepartureconfirmation(ProductionDeliveryPlan productionDeliveryPlan)
    {
        return productionDeliveryPlanMapper.suredepartureconfirmation(productionDeliveryPlan);
    }

    //车辆出发接口
    @Override
    public List<ProductionDeliveryPlan> selectvehiclearrivesconfirm(ProductionDeliveryPlan productionDeliveryPlan)
    {
        return productionDeliveryPlanMapper.selectvehiclearrivesconfirm(productionDeliveryPlan);
    }

    @Override
    public List<ProductionDeliveryPlan> selectvehiclearrivesconfirmnook(ProductionDeliveryPlan productionDeliveryPlan)
    {
        return productionDeliveryPlanMapper.selectvehiclearrivesconfirmnook(productionDeliveryPlan);
    }

    @Override
    public int surevehiclearrivesconfirm(ProductionDeliveryPlan productionDeliveryPlan)
    {
        return productionDeliveryPlanMapper.surevehiclearrivesconfirm(productionDeliveryPlan);
    }

    //车辆到厂接口
    @Override
    public List<ProductionDeliveryPlan> selectarrivalgoodsconfirm(ProductionDeliveryPlan productionDeliveryPlan)
    {
        return productionDeliveryPlanMapper.selectarrivalgoodsconfirm(productionDeliveryPlan);
    }

    @Override
    public List<ProductionDeliveryPlan> selectarrivalgoodsconfirmnook(ProductionDeliveryPlan productionDeliveryPlan)
    {
        return productionDeliveryPlanMapper.selectarrivalgoodsconfirmnook(productionDeliveryPlan);
    }

    @Override
    public int surearrivalgoodsconfirm(ProductionDeliveryPlan productionDeliveryPlan)
    {
        return productionDeliveryPlanMapper.surearrivalgoodsconfirm(productionDeliveryPlan);
    }
}
